package com.ebocy.hammer.battle.fight.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractS2CMessage;

public class S2CUpdateFightStatisticMessage extends AbstractS2CMessage {
	public static final byte KILL = 1;
	public static final byte DIZZY = 2;

	private String playerId;
	private byte type;
	private short number;

	public S2CUpdateFightStatisticMessage(String playerId, byte type,
			short number) {
		super();
		this.playerId = playerId;
		this.type = type;
		this.number = number;
	}

	@Override
	protected void writeMessage() {
		writeString(playerId);
		writeByte(type);
		writeShort(number);
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.BATTLE_UPDATE_FIGHT_STATISTIC;
	}

}
